put the value of ((((card field obsI) - ( card field expI))^2) / (card field expI)) into sumdatai
add the value of ((((card field obsII) - (card field expII))^2) / (card field expII)) to sumdatai
put the value of (card field f1 + card field f2 + card field f3 + card field f4) - sumdatai into card field homochi
if the value of card field homochi <=0 then put the value of ((card field homochi) * -1) into card field homochi
end mouseUp
-- part 9 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=347 top=275 right=293 bottom=441
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: homochi
-- part 10 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=271 top=212 right=235 bottom=324
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: OBSII
-- part 11 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=334 top=213 right=236 bottom=387
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: EXPII
-- part 12 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=403 top=315 right=337 bottom=503
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: CHI SQUARE
----- HyperTalk script -----
on mouseUp
global bagten
put the value of card field homochi into bagten
go to card id 24053
put the value of "bagten" into card field f1
end mouseUp
-- part 13 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=293 top=314 right=336 bottom=393
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: NEXT
----- HyperTalk script -----
on mouseUp
go to card id 25732
delete line 1 of card field class1
get the location of card field class1
click at it
end mouseUp
-- part 14 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=205 top=315 right=337 bottom=256
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: NEXT
----- HyperTalk script -----
on mouseUp
go to next card
end mouseUp
-- part 15 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=149 top=314 right=337 bottom=199
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: PREV.
----- HyperTalk script -----
on mouseUp
go back
end mouseUp
-- part contents for background part 1
----- text -----
HOMOGENIETY CHI SQUARE
-- part contents for card part 2
----- text -----
0.222222
-- part contents for card part 3
----- text -----
1.08
-- part contents for card part 4
----- text -----
0.157895
-- part contents for card part 5
----- text -----
1.173913
-- part contents for card part 6
----- text -----
70
-- part contents for card part 7
----- text -----
68.25
-- part contents for card part 10
----- text -----
21
-- part contents for card part 11
----- text -----
22.75
-- part contents for card part 9
----- text -----
2.454543
-- part contents for background part 2
----- text -----
The homogeniety chi-square allows you to determine whether or not data from several different samplings can be combined. In other words, are the individual chi-squares homogeneous. In essence it sums the chi-squares of each individual sample and from this value, subtracts the chi-square of the summed data. The result is a homogeniety chi-square which indicates the homogeniety of the individual chi-square values. If the homogeniety chi-square has a probability below the 5% level of significance, the individual readings can be considered to be non-homogeneous and they should not be combined. This program allows you to check the homogeniety of four individual readings. The data is automatically logged into the appropriate windows by clicking on the HOMOGENIETY button in the normal Chi-Square program. Each chi-square consists of a pair of observations and the expected values based on the hypothetical explanation of the spread. The data is automatically summed so that all the student has to do is click on the CALCULATE button to obtain the homogeniety chi-square. When the summed observation chi-square is subtracted from the summed chi-squares, one degree of freedom should be subtracted also. Thus, if you are comparing four sets of data, you will be operating under 3 degrees of freedom.